package com.zxy;

import com.homework.Student1;

public class demo01 {
    public static void main(String[] AAA) {
        //创建一个学生对象
        Student1 s1 = new Student1(20, 181.3, "zs", "nan");
        System.out.println(s1.getAge());
        s1.setAge(22);
        System.out.println(s1.getAge());
        Student1 s2 = new Student1();
        System.out.println(Math.sin(Math.PI));

        String s3 = new String("abc");
        char[] arr = new char[]{'a', 'b', 'c'};
        String s4 = new String(arr);
        byte[] bytes = new byte[]{97, 98, 99};
        String s5 = new String(bytes);
        String s6 = new String();
        System.out.println(s3);
        System.out.println(s4);
        System.out.println(s5);
        System.out.println(s6);
    }
}